package org.example.frame;

import org.example.panel.LoginPanel;

import javax.swing.*;
import java.awt.*;

public class LoginFrame extends JFrame {
    // alt+insert


    public LoginFrame() throws HeadlessException {
        this.setTitle("login");
        this.setSize(500,600);
        this.add(new LoginPanel());

        this.pack();    // 将页面优化
        this.setLocationRelativeTo(null);   // 居中
        this.setVisible(true);
    }
}
